package conson.tech.manage.coupons.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * InterfaceName: ActivityCouponDetailVo
 * Description: 领券活动中优惠券详情展示实体
 * Author: XYF
 * Date: 2020/7/22 14:09
 * Version: 1.0
 */
@ApiModel(value = "conson.tech.manage.coupons.entity.vo.ActivityCouponDetailVo", description = "领券活动中优惠券详情展示实体")
@Data
public class ActivityCouponDetailVo implements Serializable {

    private static final long serialVersionUID = 5985960136333340981L;

    /**
     * 优惠券主体配置表  批次id
     */
    @ApiModelProperty(value = "批次id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long batchId;
    /**
     * 优惠券批次名称
     */
    @ApiModelProperty(value = "优惠券批次名称")
    private String batchName;
    /**
     * 单用户发放张数
     */
    @ApiModelProperty(value = "单用户发放张数")
    private Integer limitNum;
    /**
     * 活动总数量
     */
    @ApiModelProperty(value = "活动总数量")
    private Integer totalNum;
    /**
     * 活动优惠券剩余数量
     */
    @ApiModelProperty(value = "活动优惠券剩余数量")
    private Integer surplusNum;

    /**
     * 优惠券批次活动开始时间
     */
    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    /**
     * 优惠券批次活动结束时间
     */
    @ApiModelProperty(value = "活动结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
}
